{% load i18n %}
<div class="well well-small actions btn-toolbar hidden">
  <input type="hidden" id="action" name="action" value=""/>
  <input type="hidden" id="select-across" name="select_across" value=""/>
  <div class="btn-group">
    <a class="dropdown-toggle btn btn-success" data-toggle="dropdown" href="#">
    <i class="icon-wrench icon-white"></i> 
    <span class="action-counter">{{ selection_note }}</span>
    <span class="all">{{ selection_note_all }}</span>
    <b class="caret"></b></a>
    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
      {% for name, descr in action_choices %}
        <li><a onclick="$.do_action('{{name}}');"><i class="icon-remove"></i> {{descr}}</a></li>
      {% endfor %}
    </ul>
  </div>
  {% if actions_selection_counter %}
      {% if cl.result_count != cl.result_list|length %}
      <a class="question btn" href="javascript:;" title="{% trans "Click here to select the objects across all pages" %}">{% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktrans %}</a>
      <a class="clear btn" href="javascript:;">{% trans "Clear selection" %}</a>
      {% endif %}
      <script type="text/javascript">var _actions_icnt="{{ cl.result_list|length|default:"0" }}";</script>
  {% endif %}
</div>